package com.ylyq.ylxx.controller;

import com.ylyq.ylxx.model.ResponseData;
import com.ylyq.ylxx.model.bean.RefusePlanResponse;
import com.ylyq.ylxx.model.request.ChangeRefusePlanRequest;
import com.ylyq.ylxx.model.request.CopyPlanRequest;
import com.ylyq.ylxx.model.request.GetRefusePlanRequest;
import com.ylyq.ylxx.service.IYlyqPlanToolService;
import com.ylyq.ylxx.service.IYlyqRefusePlanService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiaweichao
 * @since 2020-08-21
 */
@RestController
@RequestMapping("/ylyqPlanTool")
@Api(description = "计划工具相关接口")
public class YlyqPlanToolController {

    @Autowired
    private IYlyqPlanToolService iYlyqPlanToolService;

    @PostMapping("/copyPlan")
    @ApiOperation(value = "复制分裂计划")
    public ResponseData copyPlan(@RequestBody CopyPlanRequest copyPlanRequest){
        return iYlyqPlanToolService.copyPlan(copyPlanRequest);
    }
}
